G_PreLogStr = "<color=green>Lua</color>"
G_LogStackLevel = 2
GetLogStr = function ( ... )
	local tab_wrapper = {...}
	local tab = {}
	for k, v in pairs(tab_wrapper) do
		tab[k] = tostring(v)
	end
	local str = table.concat(tab, " ")
	return str
end

print = function ( ... )
	local str = debug.traceback(GetLogStr(G_PreLogStr, ...), G_LogStackLevel)
	Debug.Log(str)
end

error = function ( ... )
	local str = debug.traceback(GetLogStr(G_PreLogStr, ...), G_LogStackLevel)
	Debug.LogError(str)
end

warning = function ( ... )
	local str = debug.traceback(GetLogStr(G_PreLogStr, ...), G_LogStackLevel)
	Debug.LogWarning(str)
end